<template>
  <div>
    <div>
      我是父组件: {{ win }}
      <el-button @click="open">打开dialog</el-button>
    </div>
    <dialogTest :win="win"></dialogTest>
  </div>
</template>

<script setup>
import dialogTest from './dialogs/dialogTest.vue'
const win = reactive({
  title: '我是标题',
  visible: false,
})
const open = () => {
  win.visible = true
}
</script>

<style scoped></style>
